package com.gitee.wsl.struct.state

/**
 * @author light
 * @since 2023/4/6
 */

class NFA() {
    val states = HashSet<NState>()
    val tranTable = HashMap<NState, List<NTransition>>()

    constructor(startTran: List<NTransition>) : this() {
        tranTable[START_STATE] = startTran
    }

    fun addTrans(state: NState, trans: List<NTransition>) {
        states.add(state)
        tranTable[state] = trans
    }

}